<!DOCTYPE html>
<html lang="en" xmlns:v-model="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
  <head>
      <meta charset="UTF-8">
      <title>vue数据渲染练习</title>
  </head>
  <body>

  <div id="app">
    <h1>{{message}}</h1>
    <input type="text" v-model:value="imgs.imgName">
    <img v-bind:src="imgs.imgName" v-bind:width="imgs.width">
  </div>

  <script src="vue.js"></script>
  <script type="text/javascript">
    let vm = new Vue({
      el:"#app",
      data:{
        message:"请输入图片编号a.jpg, b.jpg, c.jpg",
        imgs:{
          imgName:"../a.jpg",
          width:"200px"
        }
      }
    })
  </script>
  </body>
</html>